package top.suven.base.util.constants;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


/**   
 * @Title: RespFriendShipList.java 
 * @author Joven.wang   
 * @date   2017年1月19日
 * @version V1.0  
 * @Description: TODO(说明)  
 */

public class RespResultList<T> {

	private List<T> list;
	private int isNextPage;
	private long pageIndex;
	
	public RespResultList( ) {
		list = new ArrayList<>();
	}
	
	public RespResultList(int isNextPage) {
		super();
		this.isNextPage = isNextPage;
		list = new ArrayList<>();
	}
	
	public int getIsNextPage() {
		return isNextPage;
	}
	public void setIsNextPage(int isNextPage) {
		this.isNextPage = isNextPage;
	}
    public void setIsNextPage(boolean isNextPage) {
        int nextPage = isNextPage == true ? 1 : 0;
        this.isNextPage = nextPage;
    }

	public List<T> getList() {
		return list;
	}

    public void setList(List<T> list) {
        this.list = list;
    }
	

    public long getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(long pageIndex) {
        this.pageIndex = pageIndex;
    }
}
